<!DOCTYPE html>
<html>
<head>
    <title>主页面</title>
</head>
<body>
    B页面
    <script src="../../js/dubbo_all.js"></script>
    <script>
        function  b(args){
            console.log("b被调用;参数：" + args);
            window.setTimeout(function(){
                du.runRemoteFunc("a","谁是我");
            },2000);
        }
 

    
    var du = new Dubbo(true);
    //注册服务到顶级winodw
    du.regRemoteFunc("b",b);

    </script>
</body>
</html>